<include file="header" />
<!--这里是图片栏目列表-->
<script type="text/javascript" src="__PUBLIC__/js/chkbox.js"></script>
<script type="text/javascript">
    window.onload= function(){
        chkBox('chkbox','tids[]');
    };

</script>
<style type="text/css">
    table td{
        width:15%;
    }
</style>
<form action="__CONTROLLER__/batDel" method="post" id="batDelPic"></form>
<table class="tableb">
    <tr class="tbtitle">
        <td colspan="4" class="tdsearch">
            <form action="__CONTROLLER__/viewByClass" id="viewByClass" method="post" style="text-align: left; margin-left: 80px;">
                <select name="class_id" form="viewByClass">
                    <foreach name="classS" item="value">
                    <option value="{$value.tid}">{$value.name}</option>
                    </foreach>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" value="分类显示" name="" form="viewByClass" />
                </select>
            </form>
        </td>
        <td colspan="2">
            <span class="rightop" style="width:120px;"><a href="__CONTROLLER__/addCol">添加图片栏目</a></span>
            <span class="rightop" style="width:80px;"><a href="__CONTROLLER__/addClass">添加分类</a></span>
            <span class="rightop" style="width:80px;"><a href="__CONTROLLER__/listClass">分类管理</a></span>
        </td>
    </tr>
    <tr class="contitle">
        <td><input type="checkbox" value="all" id="chkbox" form="batDelPic" />编号</td>
        <td>栏目名称</td>
        <td>缩略图</td>
        <td>所属分类</td>
        <td>更新时间</td>
        <td>操作</td>
    </tr>
    <foreach name="picS" item="value">
    <tr class="content conline">
        <td><input type="checkbox" name="tids[]" value="{$value.tid}" form="batDelPic" />{$value.tid}</td>
        <td><?php echo $value['name'];?></td>
        <td>{$value.name}</td>
        <td><img height="80px" src="__APP__/{$value.pic_t}" /></td>
        <td>{$value.class_name}</td>
        <td>{$value.updatetime}</td>
        <td><a href="__CONTROLLER__/editOneCol/{$value.tid}">编辑</a>&nbsp;&nbsp;<a href="__CONTROLLER__/delOneCol/{$value.tid}" onclick="javascript:return confirm('你确定要删除该数据吗？')">删除</a></td>
    </tr>
    </foreach>
    <tr class="content conline">
        <td><input type="submit" value="批量删除" name="goBatDel" form="batDelPic" /></td>
    </tr>
</table>
<p class="page">共<?php echo $count;?>条记录
    <?php
        echo $pageHtml;
    ?>
</p>
<include file="footer" />